<?php

class Filter {

	public static function vint($var) {
		return intval($var);
	}

	public static function vtitle($title) {
		return strip_tags(trim($title));
	}

	public static function vletter($letter) {
		return preg_match("/^[a-z0-9]{1}+$/i", $letter) ? $letter : '';
	}

	public static function vInts($var) {
		return preg_match("/[0-9,]*/", $var) ? $var : 0;
	}
}